package org.gd.hellojaxb.example.list;

import org.gd.hellojaxb.interfaces.XmlObject;

import javax.xml.bind.annotation.*;

@XmlRootElement
public class Author extends XmlObject {

    private String name;
    private String place;

    public Author() {
        this(null, null);
    }

    public Author(String name) {
        this(name, null);
    }

    public Author(String name, String place) {
        this.name = name;
        this.place = place;
    }

    public String getName() {
        return name;
    }

    @XmlAttribute
    public void setName(String name) {
        this.name = name;
    }

    public String getPlace() {
        return place;
    }

    @XmlAttribute
    public void setPlace(String place) {
        this.place = place;
    }
}
